import { biliSub2Lrc } from '../../src/utils/lrcfetch/bili';

test('bili lrc', async () => {
  const parsedLrc = biliSub2Lrc(dummyText.body);
  expect(parsedLrc.length > 0);
}, 33333);

const dummyText = {
  font_size: 0.4,
  font_color: '#FFFFFF',
  background_alpha: 0.5,
  background_color: '#9C27B0',
  stroke: 'none',
  body: [
    {
      from: 0,
      to: 2.575,
      location: 2,
      content: '不能走太快因为潘玮柏是R&B之王',
    },
    {
      from: 2.826744,
      to: 7.826744,
      location: 2,
      content: 'Just tell me 萧敬腾！',
    },
    {
      from: 8.488547,
      to: 13.488547,
      location: 2,
      content: '耶~爷爷南宁的朋友啊哦~',
    },
    {
      from: 13.625,
      to: 16.379602,
      location: 2,
      content: '哦耶耶耶~',
    },
    {
      from: 16.629212,
      to: 20.075,
      location: 2,
      content: '爱就爱 我的偶像 潘玮柏！！',
    },
    {
      from: 20.396108,
      to: 21.775,
      location: 2,
      content: '又是一个寂寞的斐济杯',
    },
    {
      from: 22.21964,
      to: 24.075,
      location: 2,
      content: '仿佛没人参加只有我会想加↑',
    },
    {
      from: 24.480725,
      to: 26.071083999999995,
      location: 2,
      content: '不想XX不是因为无所谓',
    },
    {
      from: 26.071084,
      to: 27.517263000000003,
      location: 2,
      content: '只是我看到女孩不会',
    },
    {
      from: 27.517263,
      to: 28.3,
      location: 2,
      content: 'G8一直翘！',
    },
    {
      from: 28.3,
      to: 30.1,
      location: 2,
      content: 'thats right maybe thats right我没女友',
    },
    {
      from: 30.437266,
      to: 32,
      location: 2,
      content: '我跟韩老师需要多看Apiano',
    },
    {
      from: 32.222235,
      to: 33.95,
      location: 2,
      content: '交好的女友 哪有这么美丽↗',
    },
    {
      from: 34.279782,
      to: 35.8,
      location: 2,
      content: '机会来了自然就会轻易到手',
    },
    {
      from: 36.273895,
      to: 38.275,
      location: 2,
      content: '！@￥@  #@%￥',
    },
    {
      from: 38.548639,
      to: 40.075,
      location: 2,
      content: "实在不想说 歪↑面↓ I'm here",
    },
    {
      from: 40.499366,
      to: 42.075,
      location: 2,
      content: '真的不想在这里伊耶耶~',
    },
    {
      from: 42.29947,
      to: 44.275,
      location: 2,
      content: '绝对 不是 敬业',
    },
    {
      from: 44.586903,
      to: 45.775,
      location: 2,
      content: '哪个女孩真的跟我看对眼',
    },
    {
      from: 46.122899,
      to: 47.9,
      location: 2,
      content: '粗大G8喷得乱七八糟',
    },
    {
      from: 48.188418,
      to: 50.2,
      location: 2,
      content: '！@&￥ 这种笑话真的好笑（哈哈哈）',
    },
    {
      from: 50.465654,
      to: 52.075,
      location: 2,
      content: '偏偏这个夜晚就是这么叫好',
    },
    {
      from: 52.318945,
      to: 53.5,
      location: 2,
      content: 'just tell me为什么',
    },
    {
      from: 53.753784,
      to: 56.075,
      location: 2,
      content: '眼神有爱要做~',
    },
    {
      from: 56.350703,
      to: 59.475,
      location: 2,
      content: '是不是 你想要G6↑给我',
    },
    {
      from: 59.763808,
      to: 64.1,
      location: 2,
      content: '偷偷的看看你 要让我she多久',
    },
    {
      from: 64.380176,
      to: 68.3,
      location: 2,
      content: '去逃避 不要用斐济杯（嗷呜~）',
    },
    {
      from: 68.3,
      to: 70.1,
      location: 2,
      content: '嘿你zuoai我zuoai  你又walk by',
    },
    {
      from: 70.460973,
      to: 72.2,
      location: 2,
      content: '怎么这么美丽~~~',
    },
    {
      from: 72.500225,
      to: 73.775,
      location: 2,
      content: 'you better know that you fly',
    },
    {
      from: 74.20066,
      to: 76.125,
      location: 2,
      content: '我不像其他经理永远都是那么大~',
    },
    {
      from: 76.16315,
      to: 77.925,
      location: 2,
      content: '我的G8XX在加速',
    },
    {
      from: 77.925,
      to: 80.025,
      location: 2,
      content: '真的应该怎么办 我看我只想哭',
    },
    {
      from: 80.025,
      to: 82.05,
      location: 2,
      content: '晚上戴着墨镜 却又怕阳胱~',
    },
    {
      from: 82.05,
      to: 84.25,
      location: 2,
      content: '求你现在回头 我保证立刻回家欢喜',
    },
    {
      from: 84.442644,
      to: 86.125,
      location: 2,
      content: '信不信 不由你 有够神奇',
    },
    {
      from: 86.391964,
      to: 88.075,
      location: 2,
      content: 'G8的交会 产生一种电流',
    },
    {
      from: 88.075,
      to: 89.9,
      location: 2,
      content: '说实在我也不太懂',
    },
    {
      from: 90.268064,
      to: 91.675,
      location: 2,
      content: '要我怎么o 要我怎么a',
    },
    {
      from: 92.006597,
      to: 95.675,
      location: 2,
      content: '你才会明白我的心~~',
    },
    {
      from: 105.698068,
      to: 110.698068,
      location: 2,
      content: '摸了',
    },
    {
      from: 116.484122,
      to: 118.125,
      location: 2,
      content: '潘玮柏你现在到底做不做',
    },
    {
      from: 118.39715,
      to: 120.175,
      location: 2,
      content: '男子汉的G8说she就she',
    },
    {
      from: 120.502433,
      to: 122,
      location: 2,
      content: '怎么接近你 我现在还在摸索',
    },
    {
      from: 122.215771,
      to: 123.775,
      location: 2,
      content: '怎么cao！ 怎么嫁↑ 怎么hia！',
    },
    {
      from: 124.622481,
      to: 126.025,
      location: 2,
      content: '就算她不想做你的大！经理',
    },
    {
      from: 126.340575,
      to: 128.5,
      location: 2,
      content: '是她的自由 想看Apiano举手',
    },
    {
      from: 128.766034,
      to: 130.475,
      location: 2,
      content: 'OK123 千万别想那么多',
    },
    {
      from: 132.526065,
      to: 133.8,
      location: 2,
      content: '终于到了重要关头就要开口',
    },
    {
      from: 134.14056,
      to: 136.2,
      location: 2,
      content: '给你我的安慰和鼓励yiyi',
    },
    {
      from: 136.25,
      to: 137.825,
      location: 2,
      content: '拍拍你的背 进行自我介绍',
    },
    {
      from: 137.825,
      to: 140.1,
      location: 2,
      content: '欢迎来到G8 北海道 ',
    },
    {
      from: 140.464328,
      to: 142,
      location: 2,
      content: '世界上的机会通常只有3秒',
    },
    {
      from: 142,
      to: 143.775,
      location: 2,
      content: '现在倒数三秒 准备好了没有',
    },
    {
      from: 144.070188,
      to: 146.225,
      location: 2,
      content: '这种感觉到底是真是假快点告诉我~',
    },
    {
      from: 146.225,
      to: 148.225,
      location: 2,
      content: '不要瞬间冲动 在此跌倒~~',
    },
    {
      from: 148.225,
      to: 155.725,
      location: 2,
      content: 'How deep is your斐济杯let me know\n',
    },
    {
      from: 156.432005,
      to: 163.05,
      location: 2,
      content: '我问你斐济杯有多深？',
    },
    {
      from: 171.396035,
      to: 176.396035,
      location: 2,
      content: '摸了',
    },
  ],
};
